package com.cloud.admin.beans.dto;

import com.cloud.admin.beans.po.Office;
import com.cloud.admin.beans.po.Role;
import com.cloud.admin.beans.po.User;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 机构表
 * </p>
 *
 * @author Aijm
 * @since 2019-05-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="SysUser对象", description="用户表")
@NoArgsConstructor
public class UserDTO extends User {

    /**
     *是否是admin 用户
     */
    private Boolean hasAdmin;

    /**
     * 所属公司
     */
    private Office company;

    /**
     * 所属部门
     */
    private Office office;

    /**
     * 拥有的所有角色
     */
    private List<Role> roleList;

}
